package com.nlx.notes.module.bean.vo.gold;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.nlx.notes.module.bean.BaseVo;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Getter
@Setter
@ToString
public class GoldPurchasePageVO extends BaseVo {

    private Long id;

    private BigDecimal weight;

    private BigDecimal totalPrice;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "0.00")
    private BigDecimal unitPrice;

    private LocalDate purchaseDate;

    /**
     * 收益
     */
    private BigDecimal earnings;

    /**
     * 总收益，包含手续费
     */
    private BigDecimal earningsTotal;

    /**
     * 购买渠道
     */
    private String channel;

    /**
     * 是否存在手续费，yes-是，false-不存在
     */
    private String haveFee;

    /**
     * 手续费
     */
    private BigDecimal feeRatio;

    /**
     * 手续费
     */
    private BigDecimal fee;

    private Long userId;

}
